/*
 * Bounds.h
 *
 *  Created on: Nov 30, 2011
 *      Author: ECE_Guest
 */

#ifndef BOUNDS_H_
#define BOUNDS_H_
#include "Coordinate.h"

class Bounds
{
	public:
		Bounds (double x, double y);
		void CheckPoint(double x, double y);

	private:
		void createBoundsArray ();

		bool inBounds (Coordinate test);

		Coordinate getIntersection (Coordinate test, Coordinate b1, Coordinate b2);

		bool intersectionValid (Coordinate intersection, Coordinate test, Coordinate b1, Coordinate b2);

		double shortestDistance (Coordinate test);


};

#endif /* BOUNDS_H_ */
